package com.ccrfid.rmc6.service.video;

import com.ccrfid.rmc6.entity.video.VideoPlatformEntity;
import com.ccrfid.rmc6.pojo.hikartemis.resp.AppSecret;
import com.ccrfid.rmc6.pojo.open8200.resp.DataCamera;
import com.ccrfid.rmc6.pojo.open8200.resp.DataOrg;

import java.sql.Timestamp;
import java.util.List;

public interface Open8200Service {
    //获取加密Key
    AppSecret getAppSecret(VideoPlatformEntity platformEntity);

    //获取全部机构信息
    List<DataOrg> getAllOrgs(VideoPlatformEntity platformEntity);

    //获取某个结构的子机构
    List<DataOrg> getSubOrgs(VideoPlatformEntity platformEntity, String orgIndexCode);

    //获取全部摄像头信息
    List<DataCamera> getAllCameras(VideoPlatformEntity platformEntity);

    //获取某个机构下的摄像头信息
    List<DataCamera> getSubCameras(VideoPlatformEntity platformEntity, String orgIndexCode);

    //获取实时预览url
    String getPreviewURL(String cameraIndexCode, String protocol, Integer streamType);

    //获取回放取流url, 时间格式: yyyy-MM-dd'T'HH:mm:ss.SSSzzz
    String getPlaybackURL(String cameraIndexCode, String protocol, Timestamp beginTime, Timestamp endTime, Integer recordLocation);

    //弹出海康exe客户端协议
    String getVideoClientPlayUrl(String playType, List<Long> cameraIdList, Integer miniUI, Integer clear,
                                 Integer wndSelect, Integer httpsFlag, Timestamp startTime, Timestamp stopTime);
}
